[ImportVerilog] Emit coroutines for tasks#10070
Open
fabianschuiki wants to merge 1 commit intofschuiki/moore-coroutinesfrom
Open
[ImportVerilog] Emit coroutines for tasks#10070fabianschuiki wants to merge 1 commit intofschuiki/moore-coroutinesfrom
fabianschuiki wants to merge 1 commit intofschuiki/moore-coroutinesfrom
Conversation
Contributor
Author
|
Results of circt-tests run for 512cf9f compared to results for 8f20da9: sv-testsChanges in emitted diagnostics:
|
8f20da9 to
9dfe8dc
Compare
512cf9f to
584376f
Compare
Change ImportVerilog to emit `moore.coroutine` for SystemVerilog tasks and `moore.call_coroutine` for task calls. Functions continue to use `func.func` and `func.call`. This distinction is important because tasks can suspend execution via timing controls, while functions cannot. The `FunctionLowering` struct now stores a `FunctionOpInterface` that is either a `func::FuncOp` or a `moore::CoroutineOp`, which provides all the common function-like operations without additional dispatch. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9dfe8dc to
0080246
Compare
584376f to
8b63571
Compare
Contributor
Author
|
Results of circt-tests run for 584376f compared to results for d676ea7: sv-testsChanges in emitted diagnostics:
|
Contributor
Author
|
Results of circt-tests run for 8b63571 compared to results for 0080246: sv-testsChanges in emitted diagnostics:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change ImportVerilog to emit
moore.coroutinefor SystemVerilog tasks andmoore.call_coroutinefor task calls. Functions continue to usefunc.funcandfunc.call. This distinction is important because tasks can suspend execution via timing controls, while functions cannot.The
FunctionLoweringstruct now stores aFunctionOpInterfacethat is either afunc::FuncOpor amoore::CoroutineOp, which provides all the common function-like operations without additional dispatch.